package com.kyivmohyla.kma2.client.events.refbook;

import com.google.gwt.event.shared.GwtEvent;

public class AddObjectToReferenceBookEvent extends GwtEvent<AddObjectToReferenceBookEventHandler> {
    public static Type<AddObjectToReferenceBookEventHandler> TYPE = new Type<AddObjectToReferenceBookEventHandler>();
    private final String type;

    public AddObjectToReferenceBookEvent(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public Type<AddObjectToReferenceBookEventHandler> getAssociatedType() {
        return TYPE;
    }

    protected void dispatch(AddObjectToReferenceBookEventHandler handler) {
        handler.onAddObjectToReferenceBook(this);
    }
}
